<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
</head>
<body>
	<input type="checkbox" name="" checked>
	<script type="text/javascript" src="../jquery-3.2.1.js"></script>
	<script type="text/javascript">
		//对于布尔类型的属性值 不能用attr 用prop
		console.log($('input').attr("checked"))//checked

		//prop
		console.log($('input').prop("checked"))//true

		//设置false
		$("input").prop("checked",false)
	</script>
</body>
</html>